﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using sexhealth.console.service.post.vo;
using System.Collections;
using sexhealth.console.service.post;
using System.Text;
public partial class postdetail : System.Web.UI.Page
{
    PostService       postService = new PostService(); 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

           
            if (Request["pid"] != null) 
            {
                PostVO post=postService.DaoGetVOById<PostVO>(int.Parse(Request["pid"]));
                ltlPostTitle.Text = post.Title;
                ltlPostContent.Text = post.HtmlContent;
                ChannelVO belongToChannel = postService.DaoGetVOById<ChannelVO>(post.BelongToChannelId);
                ltlSubChannelName.Text = belongToChannel.Name;
                ltlLocationName.Text = belongToChannel.Name;
            }
        }
    }
}
